package old;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-02-04
 * Time: 下午 21:13
 */

//传统版本的车,一旦发生修改整个调用链都会跟着修改
public class Car {
    private Framework framework;


    public Car() {
        framework = new Framework();
    }

    public static void main(String[] args) {
       Car car = new Car();
       car.init();
    }

    public void init() {

        System.out.println("Car init");
        framework.init();
    }
}
